<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="./tpl/xiao/css/style.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="./tpl/xiao/js/jquery.min.js"></script>
<script language="javascript" src="./tpl/xiao/js/css.js"></script>
<script language="javascript">
$(function(){
	$("#creat_folder").click(function(){
				alert("folder");
									 });	   
		   });
</script>
</head>

<body>
<div id="wrap">
  <div class="main">
	<div class="tab"><span class="aspan">&nbsp;&nbsp;&nbsp;目录{$folder}下文件列表</span></div>
	  <table cellspacing="0" class="datalist" id="list" width="98%">
		<tr>
			<th class="firstcol">编号</th>
			<th>文件名称</th>
			<th>文件路径</th>
            <th>文件属性</th>
            <th>文件大小</th>
			<th>文件操作</th>
		</tr>
        {if $files}
		<form action="" method="post" name="myform">
		<input type="hidden" name="do_submit" value="1" />
		{foreach from=$files item=file}
		<tr>
			<td  width="6%" align="center"><input type="checkbox" name="id[]" value="1" class="checkbox" />{$file.fid}</td>
			<td  width="20%" align="center">{$file.fname}</td>
			<td  width="20%">{$file.fpath}</td>
            <td width="10%">{$file.profile}</td>
            <td width="20%">{$file.fsize}KB</td>
		  <td  width="24%"><a href="?c=sfile&a=edit&f={$file.fname}&fp={$fp}">编辑文件</a>&nbsp;&nbsp;&nbsp;
          <a href="?c=sfile&a=del&f={$file.fname}&fp={$fp}">删除文件</a></td>
		</tr>
		 {/foreach}
		<tr>
			<td colspan="6" align="left">
            	<span class="aspan">当前文件路径:</span><input type="text"  name="newpath"/>
                <input type="button" class="submit" value="更改文件路径" />
                <input type="button" class="submit" value="创建文件夹"  id="creat_folder"/>
                <input type="button" class="submit" value="创建文件" />
            </td>
		</tr>
		</form>
       
        {else}
		<tr><td colspan="6">目前没有可监视的文件或文件夹...<a href="?c=file&a=addfile"><font color="red">添加新文件</font></a>&nbsp;&nbsp;<a href="?c=file&a=addfloder"><font color="red">添加新文件夹</font></a></td></tr>	
		{/if}
		<tr>
			<td colspan="6" class="errmsg">{$msg}</td>
		</tr>
		</table>
	</div>
</div>
</body>
</html>